home *** CD-ROM | disk | FTP | other *** search
/ Almathera Ten Pack 3: CDPD 3 / Almathera Ten on Ten - Disc 3: CDPD3.iso / scope / 201-220 / scopedisk211 / climax / climax.readme < prev    next >
Encoding:
Text File  |  1995-03-20  |  18.2 KB  |  296 lines

  1.  
  2.                                      CLIMAX        (release four)
  3.  
  4. For those who have used CLImax in the version released on Fish disk 429 (release
  5. three), here is a quick summary of how this version differs from that one:
  6.     - It no longer requires ConMan.  You can specify an alternative console
  7.        handler (such as NEWCON: or GMC:) on the command line or with a tooltype.
  8.     - Command line options now need a dash before the letter(s).
  9.     - There are new options for productivity mode, single bitplane, smart
  10.        refresh under 2.0, and starting up with the window inactive and the
  11.        screen behind other screens.
  12.     - There are now separate Workbench tooltypes for each of these options.
  13.     - You can specify a single command which CLImax will exit after running,
  14.        thus enabling you to put any text-based program on its own custom screen
  15.        in the background.  You can even run this command on a file argument
  16.        passed by the Workbench.  It can optionally wait for the user to press
  17.        return before exiting, after running this command.
  18.     - It's pure now.  You can make it resident.
  19.  
  20. Have you ever wished your CLI window had 25 lines of 80 characters, just like
  21. a good old fashioned non-windowing computer?  The answer is here: CLImax by
  22. Paul Kienitz.  It creates a custom screen with a borderless backdrop CLI / Shell
  23. window.  It can run one command in this window or create an interactive session.
  24.  
  25. To create an interactive Shell window, just type "CLImax" at a shell prompt, as
  26. you would type "NewShell".  Or double click on the CLImax workbench icon.  There
  27. are a number of options you can use to adjust the result:
  28.  
  29. If you wish to use an alternative console handler instead of CON:, you can put
  30. the name of it on the command line (example: "CLImax NEWCON:"), or use the
  31. Workbench's "Info" menu option to add a ToolType named HANDLER (example:
  32. "HANDLER=GMC:").  CLImax works with the AmigaDOS 1.x and 2.x versions of CON:,
  33. with NEWCON:, and with GMC:, and should work with any others that come up.  But
  34. be warned -- do NOT try using it with RAW:!
  35.  
  36. The option -I (command line) or INTERLACE (tooltype -- it can be just the word
  37. INTERLACE, you don't need INTERLACE=YES or anything like that), then it will
  38. open an interlaced screen.  With this you can see 50 lines of text (using an 8
  39. point font) instead of the usual 25, or if you are a PAL user, 64 instead of 32.
  40. If you have set your system so that you have an overscanned workbench, then
  41. CLImax's screen will be similarly oversized and you may get even more lines of
  42. text.  With interlace, you might want to use a font taller than size 8 to make
  43. the text more readable; with Topaz 11 you get at least 36 lines of text on a
  44. non-overscanned NTSC display.
  45.  
  46. The option -E, or the tooltype TOPAZ11, causes CLImax to use the Topaz 11 font
  47. in its window instead of the system default font.  Usually this would be used
  48. with an interlaced screen.  Note:  this option does not work when using the GMC
  49. handler, at least as of v9.6 of GMC.
  50.  
  51. The option -G, or the tooltype GREEN, causes it to use a color palette of black
  52. text on a greenish background.  Normally it uses the same colors as the
  53. workbench.  These colors are chosen to minimize visible flicker when using an
  54. interlaced screen on a non-flicker-fixed monitor, particularly a 1080 or 1084.
  55.  
  56. The option -P, or the tooltype PRODUCTIVITY, causes it to use a productivity
  57. mode screen.  This requires both the ECS Denise chip on your motherboard, and
  58. AmigaDOS 2.0 or newer.  The screen will be 640 by 480 pixels, and Workbench
  59. overscan is ignored, except for one weird little "feature" I put in:  since
  60. switching from a NTSC screen to a productivity screen, at least on my system
  61. (A3000 with C= 1930 monitor), causes the image to shift to the left on the
  62. monitor, I made this option shift CLImax's screen as far to the right as the
  63. Workbench's overscan allows.  If that's not appropriate for your system, just
  64. use the mouse to drag it back to the left.  If you hate this feature, tell me.
  65.  
  66. The option -1, or the tooltype TWOCOLOR, causes it to open a one-bitplane screen
  67. using only two colors, instead of the usual two-bitplane screen with four
  68. colors.  This causes vertical scrolling to go twice as fast.
  69.  
  70. The option -B, or the tooltype INACTIVE, causes the screen to be opened behind
  71. all other screens, with the window initially inactive.  Thus, you will not see
  72. that CLImax has started up, until you move any screen(s) in front of it aside,
  73. and see it there waiting for you.
  74.  
  75. The option -S, or the tooltype SMARTREFRESH, causes it to open a "smart refresh"
  76. window under AmigaDOS 2.x, which makes the snip-text-with-the-mouse feature of
  77. the 2.x console device unusable.  The window is always smart refresh under 1.3
  78. and older.  I put this in because GMC (as of v9.6) is as yet unable to properly
  79. handle a simple refresh window -- any other window that is opened on top of it
  80. will erase all the text underneath.  And if you use ConMan with a simple refresh
  81. window, then any program that switches the handler to raw mode, or from raw mode
  82. to normal mode, will cause an annoying display glitch as the screen is quickly
  83. erased and redrawn a couple of times.
  84.  
  85. The option -W, or the tooltype WAITRETURN, is ignored except when the DO option
  86. has been used to make CLImax run just one command instead of creating an
  87. interactive session.  When DO is used, this option causes CLImax to prompt the
  88. user to press return before it exits and closes the screen.  Otherwise CLImax
  89. closes down as soon as the program being run finishes.  The -W option or the
  90. WAITRETURN tooltype may be followed by a number, for example -W10 (no space
  91. between the W and the number) or WAITRETURN=5.  If this number is present, it
  92. represents a "fail level".  If the return code of the command that is run is
  93. greater than or equal to this number, then CLImax prompts you to press return
  94. before it exits, otherwise it exits immediately.  This feature works only under
  95. dos 2.0 and newer; under 1.3 the number is ignored.  The purpose of this is that
  96. some commands you would want to run might not give you a chance to see their
  97. output if there is an error and they exit right away, but you might not want to
  98. have to press return if the command ran successfully.
  99.  
  100. CLImax will write out a summary of these options if you give the command "CLImax
  101. ?" or "CLImax H".  It will not open any screen in this case.
  102.  
  103. To end CLImax when the DO option is not used, just EndCLI as usual, or (under
  104. dos 2.x) press control-backslash; the screen will be closed when there are no
  105. windows left on it.  If there is still a window from some other program there
  106. after the console closes, it will check once per second to see when it leaves,
  107. and close when it's gone.  The console will stay open if some background process
  108. started with a Run command still has a dublicate file handle on it, just like
  109. regular NewCLI.
  110.  
  111. When CLImax starts up, it looks for the file S:Shell-Startup and if it exists,
  112. executes it before giving the first prompt.  Typically this file contains a
  113. bunch of Alias commands, among other things.  To specify a different file, use
  114. the FROM option.  Either end the command line with "FROM filename", or use the
  115. tooltype FROM=filename.  If you use FROM without any filename, then it will not
  116. look for any file to execute.  "FROM" must be AFTER all other options on the
  117. command line.  Example:  "CLImax -ie newcon: from ram:Shell-Startup" causes
  118. CLImax to execute RAM:Shell-Startup instead of S:Shell-Startup before giving a
  119. prompt, after opening a NEWCON: window using the Topaz 11 font on an interlaced
  120. screen.
  121.  
  122. To make CLImax run just one command and then exit, use the DO option.  It is
  123. used exactly like FROM, except that you put a complete command after it instead
  124. of a filename.  You cannot use both FROM and DO on the command line, and if you
  125. use both tooltypes, the FROM one is ignored.  The tooltype COMMAND can be used
  126. as a synonym of DO, but only DO works in a CLI command.  On the command line,
  127. you can put more than one command after DO just as you can with a Run command --
  128. by ending the line with a plus sign and then putting the next command on a
  129. separate line.  Here is an example of how that would look in a CLI session:
  130.  
  131.   1> climax do type my-text-file +
  132.   echo "*N --- end of file" +
  133.   wait 4
  134.  
  135. That example would open a CLImax screen, type a file onto it, add the line
  136. " --- end of file" after a couple of blank lines at the bottom, wait four
  137. seconds, and then close the screen.  Note that the combined length of all the
  138. commands must be no more than about 245 characters.
  139.  
  140. Under 1.3 and older, it is possible that a failed DO command might cause the
  141. CLImax running it to leave you with an interactive shell prompt.  This will
  142. happen if it encounters a command it can't find, or if a command fails with an
  143. error code higher than the process's "fail level", which defaults to 10.  You
  144. can use the + feature to set the fail level with a FailAt command, like this:
  145.  
  146.   1> climax do failat 999 +
  147.   cc arfarf.c
  148.  
  149. This will prevent CLImax from dumping you to a shell prompt if the cc command
  150. fails with too high a return code.  Again, this does not happen under dos 2.0
  151. and newer.
  152.  
  153. There is one possible hassle with running a DO command, depending on the console
  154. handler you use ... you may be unable to interrupt it with control-C.  When the
  155. DO option is used, control-C does not work if you use NEWCON or GMC or the
  156. standard CON under dos 1.3 and older.  It does work with ConMan and with the 2.0
  157. and newer standard CON.
  158.  
  159. The DO option can be used to "encapsulate" another program so that it uses a
  160. CLImax screen.  One program that I like to treat this way is More, used for
  161. viewing text files.  I still prefer it to other programs like MuchMore, because
  162. it's simple and quick -- smooth scrolling is a waste of time, in my opinion.
  163. But More by itself does not open its own screen ...  unless you use it with
  164. CLImax.  One can use an alias to create a text viewing command called, for
  165. instance, View:  "alias View climax -w5 do more []".  This not only puts More on
  166. its own borderless screen, but lets the original CLI window where the View
  167. command was given give a fresh prompt without waiting for More to exit.  The -w5
  168. option makes it wait for you to press return if it exits with an error message
  169. (such as when it can't find the file), but quit immediately if More displayed
  170. the file successfully.
  171.  
  172. From Workbench, this "encapsulation" can be done with a special feature, which
  173. uses a tooltype called ARGINSERT.  What you put after that tooltype is one
  174. character, usually some punctuation mark.  For instance, "ARGINSERT=@".  When
  175. this tooltype is used and a DO tooltype is also used, it searches the command
  176. after DO= for the character after ARGINSERT, and at that point, substitutes into
  177. the command the name of a file passed as a Workbench argument.  What this means
  178. is that you can click on a CLImax icon that has these tooltypes, then shift-
  179. double-click on a file, and the command in the DO tooltype will act on that
  180. file.  For example, to use More in this way from the Workbench, one would create
  181. an icon named (for example) View, which is attached to a copy of the CLImax
  182. program, and give it these tooltypes:  "ARGINSERT=@" and "DO=More @".  (You
  183. would also want to use WAITRETURN=5, if you have 2.0 or newer.)  When you use
  184. shift-clicking to give it a Workbench argument, the @ is replaced with the name
  185. of the file you used, so that the command that gets run is "More filename"
  186. instead of "More @".  When this is done, the program is run with its current
  187. directory set to the directory that the arg file (the one substituted for @) was
  188. found in.  If you double-click it with no arg, the @ is removed.  If you give it
  189. two or more extra args, it only uses the first one.  This works most efficiently
  190. if More is made resident.
  191.  
  192. What I actually like to do is to name this copy of CLImax "SYS:Utilities/More"
  193. so that icons which have that as their default tool will be displayed by it when
  194. double clicked.  The actual More program is made resident as "Real-More", and
  195. the More icon's tooltypes include "DO=Real-More @", and my shell aliases include
  196. "alias V climax -isw5 do real-more []".  I also use this icon as an AppIcon by
  197. means of Stefan Becker's ToolManager.  This allows me to simply drag the icon of
  198. a text file onto a More icon on the Workbench backdrop, to view it with More run
  199. under CLImax.  (I use another AppIcon to feed files to my text editor through
  200. ARexx, using my FRX hack.)
  201.  
  202. When the current directory is not set by the ARGINSERT feature, the current
  203. directory can be set from Workbench with a tooltype "CD".  When run from a CLI,
  204. the current directory is always the same as it was where the command was given.
  205. When you use the CD tooltype, the resulting CLI will show its current directory,
  206. if you use %S in the prompt, to be an exact copy of the string you put after
  207. "CD=".  For instance, if you use "CD=sys:trashcan", then the prompt would be
  208. something like "1.sys:trashcan> " instead of the "1.Workbench1.3:Trashcan> " (or
  209. whatever) that you would get if you gave an actual CD command.  So one should
  210. give the full correct pathname after CD= if you care about such appearences, or
  211. if you don't want to give a full pathname, the command CD "" (that is, CD to
  212. nothing in quotes) can be used (in S:Shell-Startup perhaps) to convert the
  213. prompt to the full correct pathname.
  214.  
  215. If you leave out the CD= tooltype, or name a nonexistent directory after CD=, a
  216. CLImax started from Workbench will have no current directory.  The string in the
  217. prompt will be "SYS:", but the effective CD will be the drive you booted from,
  218. NOT the current definition of SYS:.  Note that many standard commands like Dir
  219. and Copy don't like to have a null current directory, at least under 1.3.  They
  220. attempt to read the boot drive for no reason, and can fail if there's no disk in
  221. it, even if everything they're operating on is explicitly elsewhere.  Like, the
  222. command "dir ram:"  will fail if there's no disk in the boot drive.  This is a
  223. bug.  So if you ever create new CLI's that tell you "SYS:" when you ask what the
  224. current directory is, for instance by using PopCLI or DMouse, you should make
  225. use of my hack FixCLI, which will give a new CLI a path and a current directory,
  226. if it has none already.  Just go "FixCLI dirname" in the Shell-Startup script.
  227. Make FixCLI resident (it's real small) if you use it this way.
  228.  
  229. (Note:  It is possible to set CD= to a file instead of a directory.  Some
  230. programs will bomb when run from such a CLI.)
  231.  
  232. There is one more tooltype option, for compatibility with older versions of
  233. CLImax.  It is called OPTION, and the string after it consists of options that
  234. you would put after a dash on the CLI command line, like I for interlace, 1 for
  235. one bitplane, W5 for wait for return if the DO command's fail level is 5 or
  236. more.  This can be more convenient than entering several tooltypes.
  237.  
  238. A CLImax started from the Workbench will attempt to copy the command path of the
  239. Workbench process.  If there is none, it will look at other CLI processes and
  240. copy what it finds.  One started from a CLI will copy the path of the CLI it was
  241. started from.
  242.  
  243. In the upper right corner of the screen you'll see (parts of) the one or two
  244. (depending on your AmigaDOS version) screen depth gadgets.  The screen is
  245. slightly overscanned vertically even when your Workbench is not, and so (though
  246. you can't see it) there is a piece of screen title bar above the top of the
  247. window, which you can use to slide the screen vertically, or to click the depth
  248. gadget(s).  With an interlaced screen the whole title bar is there in addition
  249. to the 400 line window; with a non-interlaced screen the title bar and depth
  250. gadgets are only partially uncovered (just four scan lines).  I know it sounds
  251. unaesthetic, but it's not really so bad.  Because of the overscan, it helps to
  252. use Preferences settings in which the workbench screen is moved slightly upwards
  253. of center.  If the workbench is already overscanned, CLImax will not be any
  254. larger than the workbench screen is.
  255.  
  256. Some of the programs you run will create windows and stuff on the Workbench
  257. screen, and will seem to be doing nothing if you just look at the CLImax screen.
  258. One program that is very useful with CLImax for switching screens is wKeys by
  259. Davide Cervone, available on Fish disk 128.  Or you might prefer Matt Dillon's
  260. DMouse or a similar mouse enhancer.  Personally, I use a modified DMouse with
  261. wKeys-like screen flipping features, and a couple of other improvements.  If
  262. anybody wants a copy of this DMouse (called DRat) I can give you one, but I'm
  263. not mass-distributing it because Matt Dillon doesn't like it.
  264.  
  265. For CLImax to work under dos 1.3 and older, the Run program, and probably the
  266. Execute program, must be available in C: or made resident.  Run must be on disk
  267. if you are using a version of AmigaDOS earlier than 1.3.2 -- that's the first
  268. version in which the Execute() function knows to look for Run in the resident
  269. list.  If you are using 1.3 and don't have the 1.3.2 version of SetPatch, get
  270. it.  It makes anything that uses Execute(), including CLImax, a lot faster and
  271. more efficient, when Run is resident.  Make Run resident even if you don't make
  272. anything else resident.  Under 2.0, Run is in the ROM so this is no problem, but
  273. it still requires the Execute program to be available in most cases.  I suggest
  274. making it resident in your startup-sequence.
  275.  
  276. It's possible that if you have CLImax and LoadWB both in your startup-
  277. sequence (I do) that you might end up facing an inactive CLImax window which
  278. ignores your typing because the workbench backdrop activated the moment the
  279. initial CLI window vanished.  Try readjusting positions of these things in
  280. startup-sequence; especially try putting CLImax at the very end.
  281.  
  282. CLImax is in the public domain.  Feedback is appreciated.  If you want to,
  283. and this hack is useful to you, you can send me something nice in return.  Heck,
  284. I'd just like to hear if anybody benefits from using it.  Earlier versions of
  285. this program seemed to be a flop as far as public acclaim goes, but they only
  286. worked with ConMan and didn't have a lot of the better features yet.
  287.                                 
  288. no email address, but try               Paul Kienitz
  289. these northern California BBSes:        6430 San Pablo ave.
  290.   Winners Circle 510-845-4812           Oakland, CA, 94608
  291.   Triple-A       510-528-2867           USA
  292.   The Mission    415-967-2021
  293.   FAUG           415-595-2479
  294. (the first two are in the east bay, the last two are in
  295. silicon valley - you'll get slower response with those)
  296.